#if !defined(AFX_COMPORTCONFDLG_H__94A04872_269E_411E_BF9D_6B41E53722A6__INCLUDED_)
#define AFX_COMPORTCONFDLG_H__94A04872_269E_411E_BF9D_6B41E53722A6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComPortConfDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CComPortConfDlg dialog

class CComPortConfDlg : public CDialog
{
// Construction
public:
	CComPortConfDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CComPortConfDlg)
	enum { IDD = IDD_COMPORT_CONF_DLG };
	CComboBox	m_ccomportStop;
	CComboBox	m_ccomportData;
	CListCtrl	m_listComport;
	CComboBox	m_comportParity;
	int		m_comportID;
	int		m_comportBaud;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CComPortConfDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	_variant_t m_vcomportID,m_vcomportBaud,m_vcomportParity,m_vcomportData,m_vcomportStop;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;
	
	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CComPortConfDlg)
	afx_msg void OnItemchangedListComport(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COMPORTCONFDLG_H__94A04872_269E_411E_BF9D_6B41E53722A6__INCLUDED_)
